from selenium.webdriver.common.by import By

from base.base import Base


class Page(Base):
    sousuo='/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout[1]/android.widget.RelativeLayout/android.widget.FrameLayout[2]/android.widget.RelativeLayout/android.widget.ViewSwitcher/android.widget.RelativeLayout'
    sousuo1='com.achievo.vipshop:id/search_text_view'
    dianji='com.achievo.vipshop:id/tv_search'
    dy='com.achievo.vipshop:id/club_sort_sales_volume'
    def sousuoyewu(self,filename):
        self.driver.find_element(By.XPATH,self.sousuo).click()
        self.driver.find_element(By.ID,self.sousuo1).send_keys(filename)
        self.driver.find_element(By.ID).click()